//引入
import homePage from "../pages/App"
import Home from "../pages/Home/index"
import Limits from "../pages/Limits/limits"
import Man from "../pages/Man/man"
import Hot from "../pages/Hot/hot"
import Sleep from "../pages/Sleep/sleep"
import Staff from "../pages/Staff/staff"

import Login from "../pages/Login/login"


//路由表

const routes = [
    {
        from: "/",
        to: "/home/home",
    },
    {
        path: "/home",
        component: homePage,
        children: [
            {
                path: "/home/home",
                component: Home,
            },
            {
                path: "/home/limits",
                component: Limits,
            },
            {
                path: "/home/man",
                component: Man,
            },
            {
                path: "/home/hot",
                component: Hot,
            },
            {
                path: "/home/sleep",
                component: Sleep,
            },
            {
                path: "/home/staff",
                component: Staff,
            }

        ]
    },
    {
        path: '/login',
        component: Login
    }
]

export default routes